<%@ Page Language="C#" MasterPageFile="~/StaffIntranet.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="MCromwell.StaffIntranet.UI.Edit" Title="Manage Staff" %>
<%@ Register Src="../controls/ErrorSummary.ascx" TagName="ErrorSummary" TagPrefix="custom" %>
<%@ Register Src="../controls/ErrorHighlighter.ascx" TagName="ErrorHighlighter" TagPrefix="custom" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <form id="frmEdit" action="Edit.aspx" method="post" runat="server">
                        
        <h1>Manage Staff Details</h1>
        
        <div>
            <custom:ErrorSummary ID="errorSummary" runat="server" CssClass="error-summary" />
        </div>
        
        <table id="manage-staff-layout-table">
            <tr>
                <td valign="top">
                    <table class="detail-table">
                        <tr>
                            <th>First Name:</th>
                            <td>
                                <asp:TextBox ID="txtFirstName" runat="server" MaxLength="255" TabIndex="1"></asp:TextBox>
                                <custom:ErrorHighlighter id="firstnameErrorHighlighter" runat="server" ErrorId="firstname" DisplayText="*">
                                </custom:ErrorHighlighter></td>
                        </tr>
                         <tr>
                            <th>Middle Name:</th>
                            <td>
                                <asp:TextBox ID="txtMiddleName" runat="server" MaxLength="255" TabIndex="2"></asp:TextBox>
                                
                            </td>
                        </tr>
                        <tr>
                            <th>Last Name:</th>
                            <td>
                                <asp:TextBox ID="txtLastName" runat="server" MaxLength="255" TabIndex="3"></asp:TextBox>
                                <custom:ErrorHighlighter id="lastnameErrorHighlighter" runat="server" ErrorId="lastname" DisplayText="*">
                                </custom:ErrorHighlighter>
                                </td>
                        </tr>
                        <tr>
                            <th>Email Address:</th>
                            <td>
                                <asp:TextBox ID="txtEmailAddress" runat="server" MaxLength="255" TabIndex="4"></asp:TextBox>
                                <custom:ErrorHighlighter id="emailAddressErrorHighlighter" runat="server" ErrorId="emailaddress" DisplayText="*">
                                </custom:ErrorHighlighter>
                                </td>
                        </tr>
                        <tr>
                            <th>Telephone Number:</th>
                            <td>
                                <asp:TextBox ID="txtTelephoneNumber" runat="server" MaxLength="50" TabIndex="5"></asp:TextBox>
                                <custom:ErrorHighlighter id="telephoneNumberErrorHighlighter" runat="server" ErrorId="telephonenumber" DisplayText="*">
                                </custom:ErrorHighlighter>
                                </td>
                        </tr>
                        <tr>
                            <th>Extension:</th>
                            <td>
                                <asp:TextBox ID="txtExtension" runat="server" MaxLength="50" TabIndex="6"></asp:TextBox>
                                <custom:ErrorHighlighter id="extensionErrorHighlighter" runat="server" ErrorId="extension" DisplayText="*">
                                </custom:ErrorHighlighter>
                                </td>
                        </tr>
                        <tr>
                            <th>Location:</th>
                            <td>
                                <asp:DropDownList ID="ddlLocations" runat="server" TabIndex="7">
                                </asp:DropDownList>
                                <custom:ErrorHighlighter id="loctionErrorHighlighter" runat="server" ErrorId="location" DisplayText="*">
                                </custom:ErrorHighlighter>
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td align="right">
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                                <asp:Button ID="btnSave" runat="server" Text="Save" TabIndex="8" />
                            </td>
                        </tr>
                    </table>
                </td>
                
                <td valign="top">
                    <table class="detail-table">
                        <tr>
                            <td colspan="2">
                                <asp:Image ID="imgPhoto" runat="server" ImageUrl="~/images/nophoto.jpg" BorderStyle="Outset" BorderWidth="1px" /></td>
                        </tr>
                        <tr>
                            <th>Upload Photo:</th>
                            <td>
                                <asp:FileUpload ID="uplImage" runat="server" ToolTip="Upload a photo of staff" />
                            </td>
                        </tr>
                        <tr>
                            <th>Clear Photo if applicble:</th>
                            <td>
                                <asp:CheckBox ID="chkClearPhoto" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</asp:Content>
